<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class ManagePlace extends CI_Controller 
{

	public function index()
	{
		$data['placeData']=$this->placeData();
		$this->load->view('pruebas/manageplace_view',$data);

	}
	private function placeData()
	{
		$this->load->database();
	
		$this->db->select('*');
		$this->db->from('place');
		$query=$this->db->get();
	
		$this->db->close();
		return $query;
	}
}

?>